<?php

namespace plugin\coupon\app\model;

use support\spark\BaseModel;

class CouponReceiveLog extends BaseModel
{


//app/fgcms/admin/slide/lists
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'coupon_receive_log';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    public function coupon()
    {
        return $this->hasOne(Coupon::class, 'id', 'coupon_id');
    }
}